package com.lhn.config;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import javax.sql.DataSource;

/**
 * @author lhn
 * @date 2024-08-19 16:53
 */
@Configuration
//@ComponentScan("com.lhn.config")    //1.这个注解要和JDBCConfig中的@Configuration一起使用
@Import(JDBCConfig.class)   //2.或者单独使用@Import注解
public class SpringConfig {
}
